package edu.hubu.shop9.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import edu.hubu.shop9.entity.Department;
import edu.hubu.shop9.entity.Product;
import edu.hubu.shop9.mapper.DepartmentMapper;
import edu.hubu.shop9.mapper.ProductMapper;
import edu.hubu.shop9.service.IProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author waxijiang
 * @since 2021-07-26
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements IProductService {
    @Autowired
    ProductMapper productMapper;

    @Override
    public IPage<Product> selectByQuery(QueryWrapper<Product> queryWrapper, Page<Product> page) {
        return productMapper.selectPage(page, queryWrapper);
    }
}
